from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.index, name="index"),

    #在线信息管理路由
    url(r'^picinfos/(?P<pIndex>[0-9]+)$',views.picInfos, name = "picinfos"),#浏览信息
    url(r'^picinfos/add$',views.addPicinfos, name = "addpicinfos"),#加载添加表单
    url(r'^picinfos/insert$',views.insertPicinfos, name = "insertpicinfos"),#执行信息添加
    url(r'^picinfos/del/(?P<uid>[0-9]+)$',views.delPicinfos, name = "delpicinfos"),#删除信息
    url(r'^picinfos/edit(?P<uid>[0-9]+)$',views.editPicinfos,name = "editpicinfos"),#加载修改信息
    url(r'^picinfos/update$',views.updatePicinfos, name = "updatepicinfos"),#执行信息修改

    #文件上传
    # url(r'^upload$', views.upLoad, name="upload"),
]